#!/usr/bin/perl 
use strict;

our $serverip="192.168.1.100";
our $serverport="9000";

# setup install dir
our $rrdfilepath = "/www/mumonitor/rrddir/";
our $rrdimgpath = "/www/mumonitor/img/";
our $htmlfilepath = "/www/mumonitor/html/";
our $mumonitorpath = "/www/mumonitor/";
our $mumonitorcmdpath = "/www/mumonitor/monitor";
our $rrdtoolcmd = "/usr/local/rrdtool-1.2.15/bin/rrdtool";

# database setup
our $db_hostname="192.168.1.100";
our $db_port="3306";
our $db_name="mumonitor";
our $dsn="DBI:mysql:database=$db_name;host=$db_hostname;port=$db_port";
our $username="mudba";
our $password="mudba";

# smtp setup
our $SMTP_SERVER = '127.0.0.1';
our $SENDER = 'sysadmin@mumonitor.com';

# setup rrd env -- needn't modify
our $bandwidth_in_mib="1.3.6.1.2.1.2.2.1.10.2";
our $bandwidth_out_mib="1.3.6.1.2.1.2.2.1.16.2";
our $bandwidth_2_in_mib="1.3.6.1.2.1.2.2.1.10.3";
our $bandwidth_2_out_mib="1.3.6.1.2.1.2.2.1.16.3";
our $total_swap_mib=".1.3.6.1.4.1.2021.4.3.0";
our $avail_swap_mib=".1.3.6.1.4.1.2021.4.4.0";
our $total_ram_mib=".1.3.6.1.4.1.2021.4.5.0";
our $avail_ram_mib=".1.3.6.1.4.1.2021.4.6.0";
our $load_1min_mib=".1.3.6.1.4.1.2021.10.1.3.1";
our $load_5min_mib=".1.3.6.1.4.1.2021.10.1.3.2";
our $load_15min_mib=".1.3.6.1.4.1.2021.10.1.3.3";
our $cpu_user_mib=".1.3.6.1.4.1.2021.11.9.0";
our $cpu_system_mib=".1.3.6.1.4.1.2021.11.10.0";
our $tcp_connection_mib=".1.3.6.1.2.1.6.9.0";
our $update_mib=".1.3.6.1.2.1.1.3.0";
our @rrd_name1 = qw/ eth /;
our @rrd_name2 = qw/ mem_totalswap mem_availswap mem_totalreal mem_availreal tcpconnection cpu_system cpu_user load_1min load_5min load_15min /;

# application list -- needn't modify
our @application_list = qw/ HTTP /;
